if ( $ENV{SVNTRAC_TEST_USE_ROSEDBRC} ) {
  open my $fh, '> t/.rosedbrc' or die "Could not open file! ($!)";
  
  print $fh (
    "default:\n" .
    "  default:\n" .
    "    database: t/_sqlite.db\n"
  );
  
  delete $ENV{SVNTRAC_DATABASE};
  
  $ENV{ROSEDBRC}         = 't/.rosedbrc';
}
else {
  $ENV{SVNTRAC_DATABASE} = 't/_sqlite.db';
}

# rm t/_sqlite.db ; sqlite3 t/_sqlite.db < t/_sqlite.sql
